#!/bin/usr/env python
# -*- coding:UTF-8 -*-
"""simplefactory.py
"""

class Product(object): pass
class ProductA(Product): pass
class ProductB(Product): pass

class SimpleFactory(object):
    @staticmethod
    def get_product(product_name='a'):
        products = dict(a=ProductA, b=ProductB)
        return products[product_name]()